import type { RouterRes } from '@/service/login/type';

// main - store
export type MainStore = {
	theme: string;
	token: string;
	userInfo: Partial<UserInfo>;
	userMenus: RouterRes[];
	featuresRoutes: RouterRes[];
	headerTags: TagType[];
	setTheme: (theme: string) => void;
	loadLocalStorage: () => void;
	updateHeaderTags: (list: TagType[]) => void;
	addRouteToTags: (tag: TagType) => void;
	getMenusStorage: () => void;
	getTagsStorage: () => void;
};
// 登录
export type LoginForm = { account: string; password: string; remember?: boolean };
// 用户数据
export type UserInfo = {
	id: number;
	account: string;
	nickName: string;
	avatar: string;
	sex: string;
	remark: string;
	wechat: string;
	occupation: string;
};
// tag类型
export type TagType = { title: string; path: string };
